<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('各地区各类型交易量')" />
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="formId">
                <div class="select-list">
                    <ul>
                        <li class="select-time">
                            <label style="width: 100px">交易日期：</label>
                            <input type="text" class="time-input" id="startTime" th:value="${mindDate}"  placeholder="开始时间" name="mindDate"/>
                            <span>-</span>
                            <input type="text" class="time-input" id="endTime"  th:value="${maxDate}" placeholder="结束时间" name="maxDate"/>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>
        </div>

        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    var prefix = ctx + "tBankinfo/tBankinfo";
    $(function()  {
        var options = {
            url: prefix + "/dataListMap",
            showSearch: false,
            showRefresh: false,
            showToggle: false,
            showColumns: false,
            clickToSelect:true,
            columns: [
                {
                    field : 'AREA',
                    title : '地区码'
                },
                {
                    field : 'AREA_NAME',
                    title : '地区省份'
                },
                {
                    field : 'RATETYPE',
                    title : '商编类型'
                },
                {
                    field : 'ALL_AMOUNT',
                    title : '交易总金额',
                    formatter: function(value, row, index) {
                        return $.table.rmbFormatter(value);
                    }
                },
                {
                    field : 'ALL_NUM',
                    title : '交易总笔数'
                },
            ]
        };
        $.table.init(options);
    });
</script>
</body>
</html>